package com.fourhats.services.dto;

import java.sql.Date;
import java.text.SimpleDateFormat;

public class UserDto {

	private Long id;
	
	private String name;
	
	private String surname;
	
	private String email;
	
	private Date birthday;
	
	private String birthdayString;
	
	private String formattedBirthday;
	
	private String avatarPath;
	
	private String phone;
	
	private String address;
	
	private String genre;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSurname() {
		return surname;
	}

	public void setSurname(String surname) {
		this.surname = surname;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	
	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
		this.setFormattedBirthday(new SimpleDateFormat("dd-MM-yyyy").format(birthday));
	}
	
	public String getBirthdayString() {
		return birthdayString;
	}

	public void setBirthdayString(String birthdayString) {
		this.birthdayString = birthdayString;
	}

	public String getFormattedBirthday() {
		return formattedBirthday;
	}

	public void setFormattedBirthday(String formattedBirthday) {
		this.formattedBirthday = formattedBirthday;
	}
	
	public String getAvatarPath() {
		return avatarPath;
	}

	public void setAvatarPath(String avatarPath) {
		this.avatarPath = avatarPath;
	}
	
	public String getFullName() {
		return this.name + " " + this.surname;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getGenre() {
		return genre;
	}

	public void setGenre(String genre) {
		this.genre = genre;
	}
}
